package com.mapforge.selection;

import java.util.ArrayList;
import java.util.Iterator;

public class DiscontinuousSelectionList extends
		DiscontinuousSelectionCollection {

	public DiscontinuousSelectionList() {
		super(new ArrayList<ComparablePoint>());
	}

	@Override
	public Object clone() {
		DiscontinuousSelectionList list = new DiscontinuousSelectionList();
		Iterator<ComparablePoint> it = this.iterator();
		ComparablePoint p;
		while (it.hasNext()) {
			p = it.next();
			list.addPoint(p);
		}
		return list;
	}

}
